{% extends 'base.html' %}
{% load staticfiles %}
{% block title %}活动{% endblock %}
{% block headmessage %}
{% endblock %}
{% block content %}
<br>
<div class="col-md-12 col-xs-12">
{% for message in messages %}
                <div class="alert alert-{{ message.tags }}" style="width: 300px">{{ message }}</div>
            {% endfor %}
    {% for train in TrainActivity %}
        <div class="col-md-4 col-xs-6">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    培训信息
                </div>
                <div class="panel-body">
                    {{ train.title|linebreaks }}<br/>
                    {{ train.description|linebreaks }}
                </div>
                <div class="panel-footer" align="right">
                    <i>
                        <small>{{ train.createDate }}</small>
                        <a href='../manageTrainActivity{{ train.id }}/'>管理</a>
                        <a href='../../aid/signuptrain{{ train.id }}/'>报名</a>
                    </i>
                </div>
            </div>
        </div>
    {% endfor %}
    {% for recruit in RecruitActivity %}
        <div class="col-md-4 col-xs-6">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    招募信息
                </div>
                <div class="panel-body">
                    {{ recruit.title|linebreaks }}<br/>
                    {{ recruit.description|linebreaks }}
                </div>
                <div class="panel-footer" align="right">
                    <i>
                        <small>{{ recruit.createDate }}</small>
                        <a href='../manageRecruitActivity{{ recruit.id }}/'>管理</a>
                        <a href='../signuprecruit{{ recruit.id }}/'>报名</a>
                    </i>
                </div>
            </div>
        </div>
    {% endfor %}
</div>
{% endblock %}